<template>
    <div style="width: 80%;padding-left: 10%;padding-right: 10%;">
        <Marquee/>
        <h2 style="color: blue;margin-top: 40px;">热点精选</h2>
        <hr style="background-color: blue;height: 1px;">
        <Home /> 
    </div>
</template>

<script>
import router from "@/router";
import Home from './Home.vue'
import Marquee from './Marquee.vue'
export default {
   name:'Homes',
   components: {Home,Marquee },
   mounted(){
        if(localStorage.getItem("user")===null){
            router.push('/')
        }
   }
}
</script>

<style>

</style>